package cn.liberals.handler;

import cn.liberals.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserFallBackHandler {

    public static User getUserByIdBlockHandler(@PathVariable Long id, BlockException ex) {
        return User.builder().id(-1l).username("降吧，去吧").intro("小杏叶").build();
    }
}
